<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<link href="<?php echo $this->baseUrl;?>/admincss/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="<?php echo $this->baseUrl;?>/adminjs/jquery.pack.js" /></script>

<script language="javascript" type="text/javascript">
var mid = <?php echo $this->mid;?>;

function doCheck(obj)
{
	var did = obj.value;
	
	var check = 0;
	if (obj.checked)
		check = 1;
	var url = "<?php echo $this->url($this->baseUrl, "meet", "dictset");?>";
	$.post(url, {mid:mid, did:did, check:check});
}
</script>
<body>
<?php
$backurl = $this->url($this->baseUrl, "meet", "list", "nowp=" . $this->onowp);
?>
<table width="100%" border="1" class="tableA">
  <tr>
    <td colspan="7">选择复选框进行字段添加，删除 <a href="<?php echo $backurl;?>">返回</a>
    </td>
   </tr>
  <tr>
    <td width="5%" nowrap>编号</td>
    <td nowrap>字段名称(中文)</td>
    <td nowrap>字段类型</td>
    <td nowrap>必填</td>
    <td nowrap>独占一行</td>
    <td nowrap>排序</td>
    <td nowrap>最后编辑时间</td>
  </tr><!--
<?php
$arr_types = array(1 => '文本框', 2=>'单选', 3 => '下拉列表', 4=> '邮件地址', 5=> '日期类型', 6 => '多行文本框');

foreach ($this->all_dict as $v){
if (isset($this->dict[$v['did']])){
	$checked = 'checked="checked"';
}else{
	$checked = "";
}
$type = $arr_types[$v['type']];
if ($v['issys']){
	$delstr = "";
}
print <<<EOT
-->
  <tr>
    <td nowrap><input {$checked} type="checkbox" value="{$v['did']}" onclick="javascript:doCheck(this);" />{$v['did']}</td>
    <td nowrap>{$v['key']}</td>
    <td nowrap>{$type}</td>
    <td nowrap>{$v['ismust']}</td>
    <td nowrap>{$v['isoneline']}</td>
    <td nowrap>{$v['seq']}</td>
    <td nowrap>{$v['pubtime']}</td>
  </tr><!--
EOT;
}
$ext = '&onowp=' . $this->onowp . '&mid=' . $this->mid;
$indexurl =$this->url($this->fullUrl, 'meet', 'dict', 'nowp=1' . $ext);
$nexturl = $this->url($this->fullUrl, 'meet', 'dict', 'nowp='.$this->page['next'] . $ext);
$preurl = $this->url($this->fullUrl, 'meet', 'dict', 'nowp='.$this->page['previous'] . $ext);
$lasturl = $this->url($this->fullUrl, 'meet', 'dict', 'nowp='.$this->page['totalpage'] . $ext);
print <<<EOT
-->
  <tr>
    <td colspan="7"><a href="{$backurl}">返回</a> 共{$this->page['totalnum']}个 {$this->page['nowp']}/{$this->page ['totalpage']}
<a href="{$indexurl}">首页</a>
<a href="{$nexturl}">下一页</a>
<a href="{$preurl}">前一页</a>
<a href="{$lasturl}">末页</a></td>
  </tr>
<!--
EOT;
?>-->
</table>
</body>
</html>
